#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QString>
#include <QPaintEvent>
#include <QTimer>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void InitWaterMark();
protected:
    void paintEvent(QPaintEvent *p1);
private slots:
    void RePaintWaterMark();
private:
    Ui::Widget *ui;
    int h;
    int w;
private://cfg param
    int m_nRotate;
    int m_nPointSize;
    int m_nR;
    int m_nG;
    int m_nB;
    double m_fOpacity;
    QString m_strShowText;
    QTimer m_timer;
};
#endif // WIDGET_H
